import {Global,Module } from "@nestjs/common";
import {ConfigService } from "./config.service";
import { env } from "../ShareModule/node.env";

@Global()
@Module({
    providers:[{
        provide:ConfigService,
        useValue: new ConfigService(`src/ConfigService/env/${env}.env`),
    }],
    exports:[ConfigService]
})
export class ConfigModule{}